package com.share.cloudStorage.users.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.cloudStorage.model.Result;
import com.share.cloudStorage.users.model.Users;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.IOException;

public interface UsersService extends IService<Users> {
    /**
     * 手机号密码登录，并验证验证码
     *
     * @param user 用户信息（包括手机号和密码）
     * @param captchaCode 验证码内容
     * @param captchaId   验证码 ID
     * @return 登录结果，包含用户信息和 token
     */
    Result login(Users user, String captchaCode, String captchaId);

    Result logon(Users user, String code);

    Result sendCode(Users user);

    Result register(Users user,String code) throws IOException;

    Users getUserById(Integer userId);

    Result updateUserStatus(Users users);

    String addUser(Users user);
}